using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web.Mvc;
using Home.Site.Models.DataLayer;

namespace Home.Site.Models.WebUI
{
    public class UserViewModel
    {
        public string Name { get; set; }
        [DataType(DataType.EmailAddress)]
        public string Email { get; set; }
        [DataType(DataType.ImageUrl)]
        public string Gravatar { get; set; }
        public string Other { get; set; }

        public IQueryable<Review> Reviews { get; set; }
        public IQueryable<PhotoAlbum> PhotoAlbums { get; set; }
        public IQueryable<MusicPlaylist> MusicAlbums { get; set; }

        public int ReviewsCount { get; set; }

        public bool IsRoot { get; set; }
        public bool IsAdmin { get; set; }
        public bool IsOperator { get; set; }

        public string Login { get; set; }
    }
}